home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_is_equal2.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  600 b   |  33 lines  |  [TEXT/EDIT]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_IS_EQUAL2
  5.  
  6. creation {ANY}
  7.    make
  8.    
  9. feature {ANY}
  10.    
  11.    make is
  12.       local
  13.      c1, c2: CHARACTER;
  14.       do
  15.      is_true(c1.is_equal(c2));
  16.       end;
  17.    
  18.    is_true(b: BOOLEAN) is
  19.       do
  20.      cpt := cpt + 1;
  21.      if not b then
  22.         std_output.put_string("TEST_IS_EQUAL2: ERROR Test # ");
  23.         std_output.put_integer(cpt);
  24.         std_output.put_string("%N");
  25.      else
  26.         -- std_output.put_string("Yes %N");
  27.      end;
  28.       end;
  29.    
  30.    cpt: INTEGER;
  31.    
  32. end -- TEST_IS_EQUAL2
  33.